<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>The Start</title>
		<link href="" rel="stylesheet" type="text/css" id="viewFile" />
		<script src="./api/index.js" type="text/javascript"></script>
		<script src="./api/search.js" type="text/javascript"></script>
		<script src="./static/js/index.js" type="text/javascript"></script>
		<script src="./api/moreLinks.js" type="text/javascript"></script>
		<script src="./static/js/phoneAction.js" type="text/javascript"></script>
		<script type="text/javascript">
function OnLoads() {
	ChangeViewFile();
	/* Chose the css file */

	var Menu1 = document.getElementById('Menu1');
	var Menu2 = document.getElementById('Menu2');
	Menu1.style.color = "white";
	Menu2.style.color = "rgba(255, 255, 255, .6)";
	/* The color of Menu */

	var t = new Date();
	if(t.getHours() >= 18 || t.getHours() < 6) {
		var DarkId = document.getElementById('DarkOver');
		DarkId.style.background = "rgba(0, 0, 0, .48)";
	} else if(t.getHours() >= 6 && t.getHours() < 18) {
		var DarkId = document.getElementById('DarkOver');
		DarkId.style.background = "rgba(0, 0, 0, .11)";
	}
	/* DarkOver */

	document.getElementById('AForm').addEventListener('submit', function(submitII){
		submitII.preventDefault();
	});
	document.getElementById('AddLinks').addEventListener('submit', function (submitI) {
		submitI.preventDefault();
	})
	/* Stop `from` submit by adding a `onClick` event */

	SearchWayChooseFirst();
	/* Set the Default Search Way */

	AutoloadImg();
	/* Autoload the Background Image */

	GetMoreLinksName();
	/* Autoload the Links' Name */

	StopChildPro();
	/* Stop the child nodes from propagation */
}

function AutoloadImg() {
	var backgroundNum = CheckCookies('bgimg', document.cookie);
	if(backgroundNum == null) {
		return;
	}
	ChangeImg(backgroundNum);
}

function ChangeViewFile() {
	if(/(iPhone|iPod|iOS|Android)/i.test(navigator.userAgent)) {
		document.getElementById('viewFile').href = './static/css/phone/index.css';
		PhoneActions();
	} else {
		document.getElementById('viewFile').href = './static/css/computer/index.css';
		ComputerActions();
	}
	if(document.readyState == 'complete')
		document.getElementById('loadingDiv').style.display = 'none';
}

function StopChildPro() {
	var Objects = document.getElementsByClassName('deleteImg');
	for(var i = 0; i <= 7; i++) {
		Objects[i].addEventListener('click', function(e) {
			e.stopPropagation();
		});
	}
}
		</script>
	</head>
	<body onload="OnLoads()" onContextMenu="return false;">
		<div id="loadingDiv" style="position: absolute;top: 0;left: 0;z-index: 500;width: 100%;height: 100%;margin: 0;background-color: white;">
			<p style="margin-top: 50%;font-size: 25px;text-align: center;">正在加载中，请稍等....</p>
		</div>
		<div id="SearchBody">
			<h2 id="FunctionTitle" class="title">Simpler Search</h2>
			<form id="AForm" action="">
				<input type="text" name="word" id="SearchInputer" placeholder="Jump to" autocomplete="off" oninput="CheckInputer()" onBlur="KeepFocus()" onFocus="ShowHitokoto()" />
				<input type="submit" value="Search" style="display: none;" onClick="SearchIn()" />
			</form>
			<div id="SearchWay" style="display: none;">
				<div id="BaiduSearch" class="SearchWaysDiv">
					<img src="./src/baidu.png" alt="baidu" onClick="ChangeSearchWay('1')" />
				</div>
				<div id="BingSearch" class="SearchWaysDiv">
					<img src="./src/bing.png" alt="bing" onClick="ChangeSearchWay('2')" />
				</div>
				<div id="GoogleSearch" class="SearchWaysDiv">
					<img src="./src/google.png" alt="google" onClick="ChangeSearchWay('3')" />
				</div>
			</div>
		</div>
		<div id="DarkOver"></div>
		<div id="OtherFunctions">
			<h2 class="title" id="FunTitle">Functions Tools</h2>
			<div id="UsualLinkDiv">
				<div class="UsualLinks"><a href="https://www.bilibili.com/" target="_blank">哔哩哔哩</a></div>
				<div class="UsualLinks"><a href="https://fanyi.baidu.com/" target="_blank">百度翻译</a></div>
				<div class="UsualLinks"><a href="https://qzone.qq.com/" target="_blank">QQ空间</a></div>
				<div class="UsualLinks"><a href="https://mail.qq.com" target="_blank">QQ邮箱</a></div>
				<div class="UsualLinks"><a href="https://www.youku.com/" target="_blank">优酷</a></div>
				<div class="UsualLinks"><a href="https://wallroom.io/" target="_blank">高清图片</a></div>
				<div class="UsualLinks"><a href="https://v.qq.com/" target="_blank">腾讯视频</a></div>
				<div class="UsualLinks"><a href="https://www.iqiyi.com/" target="_blank">爱奇艺</a></div>
				<div class="UsualLinks"><a href="https://www.github.com/" target="_blank">GitHub</a></div>
				<div class="UsualLinks"><a href="https://cloud.tencent.com/" target="_blank">腾讯云</a></div>
				<div class="UsualLinks"><a href="https://www.huaweicloud.com/" target="_blank">华为云</a></div>
				<div class="UsualLinks"><a href="https://www.aliyun.com/" target="_blank">阿里云</a></div>
				<div class="UsualLinks"><a href="https://www.jd.com/" target="_blank">京东</a></div>
				<div class="UsualLinks"><a href="https://www.taobao.com/" target="_blank">淘宝</a></div>
				<div class="UsualLinks"><a href="https://www.tmall.com/" target="_blank">天猫</a></div>
				<div class="UsualLinks"><a href="http://mv.688ing.com/" target="_blank">视频解析</a></div>
				<div class="UsualLinks"><a href="https://www.iconfont.cn/" target="_blank">IconFont</a></div>
				<div class="UsualLinks"><a href="https://www.acfun.cn/" target="_blank">AcFun</a></div>
				<div class="UsualLinks"><a href="https://zh.wikipedia.org/" target="_blank">维基百科</a></div>
				<div class="UsualLinks"><a href="https://gitee.com/" target="_blank">码云</a></div>
				<div class="UsualLinks"><a href="https://www.zhihu.com/" target="_blank">知乎</a></div>
				<div class="UsualLinks"><a href="https://scholar.google.com" target="_blank">谷歌学术</a></div>
			</div>
			<div id="SettingsMenu">
				<span id="SettingsSpan"></span>
				<div id="SettingsDiv" class="SecondMenuDiv" style="display: none;">
					<span class="ThirdMenuSpan">设置背景图片</span>
					<span class="ThirdMenuSpan">更新日志</span>
					<span class="ThirdMenuSpan">基础设置</span>
				</div>
			</div>
			<div id="FunctionsMenu">
				<span id="FunctionsSpan">Functions</span>
				<div id="FunctionDiv" class="SecondMenuDiv" style="display: none;">
					<span class="ThirdMenuSpan">登录</span>
					<span class="ThirdMenuSpan">帮助</span>
				</div>
			</div>
		</div>
		<div id="MoreLinks" style="display: none;">
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('1', '0')" onContextMenu="ChangeMoreLinks('1')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('1')" class="deleteImg" />
				<span id="LinkI" class="LinkUrl"></span>
			</div>
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('2', '0')" onContextMenu="ChangeMoreLinks('2')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('2')" class="deleteImg" />
				<span id="LinkII" class="LinkUrl"></span>
			</div>
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('3', '0')" onContextMenu="ChangeMoreLinks('3')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('3')" class="deleteImg" />
				<span id="LinkIII" class="LinkUrl"></span>
			</div>
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('4', '0')" onContextMenu="ChangeMoreLinks('4')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('4')" class="deleteImg" />
				<span id="LinkIV" class="LinkUrl"></span>
			</div>
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('5', '0')" onContextMenu="ChangeMoreLinks('5')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('5')" class="deleteImg" />
				<span id="LinkV" class="LinkUrl"></span>
			</div>
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('6', '0')" onContextMenu="ChangeMoreLinks('6')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('6')" class="deleteImg" />
				<span id="LinkVI" class="LinkUrl"></span>
			</div>
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('7', '0')" onContextMenu="ChangeMoreLinks('7')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('7')" class="deleteImg" />
				<span id="LinkVII" class="LinkUrl"></span>
			</div>
			<div class="MoreLinkDiv" onClick="OpenMoreLinks('8', '0')" onContextMenu="ChangeMoreLinks('8')">
				<img src="./src/deleteLink.png" alt="delete" onClick="RemoveMoreLinks('8')" class="deleteImg" />
				<span id="LinkVIII" class="LinkUrl"></span>
			</div>
		</div>
		<div id="MenuDiv">
			<span id="Menu1" onClick="ChangeFunctionDiv('1')">I</span>
			<span id="Menu2" onClick="ChangeFunctionDiv('2')">II</span>
		</div>
		<div id="ExplainDiv">
			<span id="CopyrightSpan" class="ExplainSpan" onClick="OpenOW()">&copy;2020HLUnion</span>
			<span id="ApartSpan" class="ExplainSpan">|</span>
			<span id="AboutSpan" class="ExplainSpan" onClick="AboutTS()">About</span>
		</div>
		<div id="ChooseBGI" class="AWinBack" style="display: none;">
			<div class="AWin">
				<div class="AWinClose">
					<h2>选择你所看好的图片</h2>
					<span id="CloseBGImg" onClick="CloseBGI()" onMouseOver="HoverDiv(0)" onMouseOut="OutDiv(0)"></span>
				</div>
				<div id="Images">
					<img class="FirstLine" src="./src/background1.jpg" alt="BGI1" onClick="ChooseImg('1')" />
					<img class="FirstLine" src="./src/background2.jpg" alt="BGI2" onClick="ChooseImg('2')" />
					<img class="FirstLine" src="./src/background3.jpg" alt="BGI3" onClick="ChooseImg('3')" />
					<img class="FirstLine" src="./src/background4.jpg" alt="BGI4" onClick="ChooseImg('4')" />
				</div>
			</div>
		</div>
		<div id="HitokotoDiv">
			<p id="hitokoto" title="此内容可复制" style="display: none;">Hitokoto</p>
		</div>
		<div id="AboutDiv" class="AWinBack" style="display: none;">
			<div class="AWin">
				<div class="AWinClose">
					<h2>关于更简搜索</h2>
					<span id="CloseAbout" onClick="CloseAbout()" onMouseOver="HoverDiv(1)" onMouseOut="OutDiv(1)"></span>
				</div>
				<div id="AboutContent">
					<p id="FirstP">欢迎来到
						<strong style="color: rgba(0, 255, 0, .93);font-size: 25px;">Simpler Search</strong>
					</p>
					<p>
						<span style="color: rgba(0, 255, 0, .93);">Simpler Search</span>
						(
						<span style="color: rgba(0, 255, 0, .93);font-size: 25px;">更简搜索</span>
						)是
						<span class="LinksSpan" onClick="OpenOW()">春名联盟</span>
						旗下的一种致力于
						<span style="color: rgba(0, 255, 0, .90);">简洁好用</span>
						的开始页。
					</p>
					<p>本网站的功能如下：</p>
					<ul>
						<li>
							<a href="https://hitokoto.cn" target="_blank" class="LinksA">Hitokoto - 一言</a>
						</li>
						<li>
							<a href="./help.html#ConvenientSearch" target="_blank" class="LinksA">便捷搜索
						</li>
						<li>
							<a href="./help.html#DarkOver" target="_blank" class="LinksA">夜间显示</a>
						</li>
						<li>
							<a href="./help.html#BackgroundChoice" target="_blank" class="LinksA">背景选择</a>
						</li>
						<li>
							<a href="./help.html#BasicSettings" target="_blank" class="LinksA">基本设置</a>
						</li>
					</ul>
					<p style="text-align: center;">更多功能我们将在之后继续加入</p>
					<p style="text-align: center;font-size: 20px;">Tips: 本网页有彩蛋</p>
				</div>
			</div>
		</div>
		<div id="BasicSettings" class="AWinBack" style="display: none;">
			<div class="AWin">
				<div class="AWinClose">
					<h2>基础设置</h2>
					<span id="CloseBSeting" onClick="CloseBasicSettings()" onMouseOver="HoverDiv(2)" onMouseOut="OutDiv(2)"></span>
				</div>
				<div id="BSettingsContent">
					<div class="BSettingsDiv">
						<span class="BSettingSpan">每次更换搜索引擎时保留选择</span>
						<span class="BSettingButton">ON</span>
					</div>
				</div>
			</div>
		</div>
		<div id="UpdateLog" class="AWinBack" style="display: none;">
			<div class="AWin">
				<div class="AWinClose">
					<h2>更新日志</h2>
					<span id="CloseLog" onClick="CloseUpdateLog()" onMouseOver="HoverDiv(3)" onMouseOut="OutDiv(3)"></span>
				</div>
				<div id="UpdateLogContent" style="overflow-y: scroll;">
					<ul id="ULogUl">
						<li>
							<p>2020.2.13</p>
							<p class="UpdateContent">1.修复了若干显示BUG;</p>
							<p class="UpdateContent">2.修复了“新手帮助引导”的cookie无法保存BUG;</p>
							<p class="UpdateContent">3.为手机界面增加了自定义链接的删除功能;</p>
							<p class="UpdateContent">4.改变了电脑界面自定义链接的修改功能，详细请阅读使用帮助.</p>
						</li>
						<li>
							<p>2020.2.12</p>
							<p class="UpdateContent">1.自定义链接数增加到8个;</p>
							<p class="UpdateContent">2.增加加载中页面，在所有DOM加载完成后，进入主页面;</p>
							<p class="UpdateContent">3.新增手机界面，操作方式与电脑界面有些许不同之处，在帮助文档里都有详细介绍.</p>
						</li>
						<li>
							<p>2020.2.7</p>
							<p class="UpdateContent">1.修复了自定义链接删除时异常显示的问题;</p>
							<p class="UpdateContent">2.新增了若干常用链接.</p>
						</li>
						<li>
							<p>2020.2.6</p>
							<p class="UpdateContent">1.为便捷搜索功能增加了三种搜索方式的简单转换，无需切换搜索引擎，即可立即使用其他搜索方式;</p>
							<p class="UpdateContent">2.新增了几个固定常用链接.</p>
						</li>
						<li>
							<p>2020.1.24</p>
							<p class="UpdateContent">1.新增了Google搜索选项;</p>
							<p class="UpdateContent">2.将默认搜索引擎改为用户最近一次的搜索引擎选择，使用cookies保存数据，支持保存6个月;</p>
							<p class="UpdateContent">3.修复若干BUG.</p>
						</li>
						<li>
							<p>2020.1.16</p>
							<p class="UpdateContent">1.加入了自定义链接功能，使用cookies保存数据，支持保存6个月;</p>
							<p class="UpdateContent">2.背景图片切换后会保存为cookies数据，支持保存6个月;</p>
							<p class="UpdateContent">3.修复了打开网页乱码的问题.</p>
						</li>
						<li>
							<p>2020.1.15</p>
							<p class="UpdateContent">更简搜索正式上线</p>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div id="OpenOtherLinksDiv" style="display: none;">
			<p>自定义链接添加</p>
			<span id="CloseOther" onClick="CloseMoreLinks()"></span>
			<form action="" id="AddLinks">
				<input type="text" id="NameInputer" class="LinksInputer" placeholder="链接名称" autocomplete="off" />
				<br />
				<input type="text" id="LinksUrl" class="LinksInputer" placeholder="链接地址" autocomplete="off" />
				<br />
				<input type="submit" id="LinkSubmit" value="保存" onClick="SaveMoreLinks()" />
			</form>
		</div>
		<script src="https://v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
	</body>
</html>
